package com.siyu.tickets.entity.base;

import java.io.Serializable;

public abstract class BasePartner implements Serializable {

	private static final long serialVersionUID = -1452326850390880475L;

	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer id;

	// fields
	private java.lang.String title;
	private java.lang.String master;
	private java.lang.String gender;
	private java.lang.String address;
	private java.lang.String licenseNo;
	private java.lang.String imgLicense;
	private java.lang.String imgPhoto;
	private java.lang.String mobile;
	private java.lang.String phone;
	private java.lang.String qq;

	private java.lang.String channel;

	private java.lang.String apiUrl;

	private java.lang.String level;

	private java.math.BigDecimal money;

	private com.siyu.tickets.entity.Partner parent;

	private com.siyu.tickets.entity.Element city;

	// one to one
	private com.siyu.tickets.entity.SysUser user;

	public java.lang.Integer getId() {
		return id;
	}

	public void setId(java.lang.Integer id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}

	public java.lang.String getTitle() {
		return title;
	}

	public void setTitle(java.lang.String title) {
		this.title = title;
	}

	public java.lang.String getMaster() {
		return master;
	}

	public void setMaster(java.lang.String master) {
		this.master = master;
	}

	public java.lang.String getGender() {
		return gender;
	}

	public void setGender(java.lang.String gender) {
		this.gender = gender;
	}

	public java.lang.String getAddress() {
		return address;
	}

	public void setAddress(java.lang.String address) {
		this.address = address;
	}

	public java.lang.String getLicenseNo() {
		return licenseNo;
	}

	public void setLicenseNo(java.lang.String licenseNo) {
		this.licenseNo = licenseNo;
	}

	public java.lang.String getImgLicense() {
		return imgLicense;
	}

	public void setImgLicense(java.lang.String imgLicense) {
		this.imgLicense = imgLicense;
	}

	public java.lang.String getImgPhoto() {
		return imgPhoto;
	}

	public void setImgPhoto(java.lang.String imgPhoto) {
		this.imgPhoto = imgPhoto;
	}

	public java.lang.String getMobile() {
		return mobile;
	}

	public void setMobile(java.lang.String mobile) {
		this.mobile = mobile;
	}

	public java.lang.String getPhone() {
		return phone;
	}

	public void setPhone(java.lang.String phone) {
		this.phone = phone;
	}

	public java.lang.String getQq() {
		return qq;
	}

	public void setQq(java.lang.String qq) {
		this.qq = qq;
	}

	public java.lang.String getChannel() {
		return channel;
	}

	public void setChannel(java.lang.String channel) {
		this.channel = channel;
	}

	public java.lang.String getApiUrl() {
		return apiUrl;
	}

	public void setApiUrl(java.lang.String apiUrl) {
		this.apiUrl = apiUrl;
	}

	public java.lang.String getLevel() {
		return level;
	}

	public void setLevel(java.lang.String level) {
		this.level = level;
	}

	public java.math.BigDecimal getMoney() {
		return money;
	}

	public void setMoney(java.math.BigDecimal money) {
		this.money = money;
	}

	public com.siyu.tickets.entity.Partner getParent() {
		return parent;
	}

	public void setParent(com.siyu.tickets.entity.Partner parent) {
		this.parent = parent;
	}

	public com.siyu.tickets.entity.Element getCity() {
		return city;
	}

	public void setCity(com.siyu.tickets.entity.Element city) {
		this.city = city;
	}

	public com.siyu.tickets.entity.SysUser getUser() {
		return user;
	}

	public void setUser(com.siyu.tickets.entity.SysUser user) {
		this.user = user;
	}

	public boolean equals(Object obj) {
		if (null == obj)
			return false;
		if (!(obj instanceof com.siyu.tickets.entity.Partner))
			return false;
		else {
			com.siyu.tickets.entity.Partner bean = (com.siyu.tickets.entity.Partner) obj;
			if (null == this.getId() || null == bean.getId())
				return false;
			else
				return (this.getId().equals(bean.getId()));
		}
	}

	public int hashCode() {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId())
				return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}

	public String toString() {
		return super.toString();
	}

}